<?php
require_once ('../loginStauts.php');
require_once ('../../webconfig.php');
require (SYS_DIR.'/libraries/template.config.php');
require_once (SYS_DIR.'/configs/config.inc.php');
require_once (SYS_DIR.'/libraries/core/DataAccess.php');
require_once (SYS_DIR.'/libraries/core/models/newscategoryModel.php');


$dao=new DataAccess($dbhost, $dbuser, $dbpasswd, $dbname);
$ncmodel=new newscategoryModel($dao); 

$arrayList =$ncmodel->executeDelete($_GET["id"]);


header('Location: newscategorylist.php');
?>
